﻿<UserControl x:Class="ParticleFiltersDemo1.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:local="clr-namespace:ParticleFiltersDemo1">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Canvas x:Name="LayoutRoot"
                Grid.Row="1"
                Background="Green">

            <local:RobbieTemplatedControl 
                       Width="25"
                       Height="25"
                       Robbie="{Binding Robot}" />
            <local:ParticleSetTemplatedControl Particles="{Binding Particles}"/>            
            
        </Canvas>

        <Button  x:Name="btn"
                 Content="Start"
                 Click="btn_Click"
                 HorizontalAlignment="Left" />
    </Grid>
</UserControl>
